'use strict'


import Http from '../kit/HttpKit'
import Api from './Api'

const URL_LIST = Api.API_URL + '/draw/list'
const URL_CONFIRM = Api.API_URL + '/draw/confirm'
const URL_SET_SUCCESS = Api.API_URL + '/draw/setSuccess'
const URL_SET_FAIL = Api.API_URL + '/draw/setFail'


/**
* 提现管理模块
**/
const list = (data, callback)=>{
	var url = Api.API_URL + '/draw/list';

	data.api_token = Api.getApiToken();
	data.api_user_id = Api.getApiUserId();

	Http.post(url, data, json=>{
		Api.getDataCB(json, callback);
	});
}





export default{
	list,
	URL_LIST, URL_CONFIRM, URL_SET_SUCCESS, URL_SET_FAIL
}
